-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor SafeDogStatsdLogger
to use get_validator
to enable pattern matching
#39370
Refactor SafeDogStatsdLogger
to use get_validator
to enable pattern matching
#39370
Conversation
SafeDogStatsdLogger
SafeDogStatsdLogger
to use get_validator
to get validators
SafeDogStatsdLogger
to use get_validator
to get validatorsSafeDogStatsdLogger
to use get_validator
to get validators
SafeDogStatsdLogger
to use get_validator
to get validatorsSafeDogStatsdLogger
to use get_validator
to enable pattern matching
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
were you able to test this end to end with Datadog using all the 3 configurations? Allow list, block list and pattern list? Also could you please add tests for all those configurations if they don't exist already?
@pankajkoti, Yes, I have tested them. Allow/Block list without pattern worked perfectly. However, I noticed the following behaviour when using pattern matching, which I am not sure if it's right. With pattern matching enabled:
In the 2nd screenshot, I still see several metrics that don't have |
Env variables set:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change LGTM, but I'm not sure that second allow-list example (the one you seemed unsure about) is working as expected. Either way, that is not in scope for this PR if that is broken, but you may want to look into that more if you have the time.
I will look into it. I will create an issue( #39400) and post my findings there. |
…rn matching (apache#39370) closes apache#39368 By reusing the get_validators function, we can incorporate pattern search to include allow/block lists.
closes #39368
By reusing the
get_validators
function, we can incorporate pattern search to include allow/block lists.